
#include <mockcpp/mockcpp.hpp>
#include <testngpp/testngpp.hpp>
#include <Square.h>

USING_MOCKCPP_NS
USING_TESTNGPP_NS

FIXTURE(Square)
{

        TEST(should be able to calculate the perimeter after reset edging:square(5), square:setEdging(8),square.calPerimeter())
        {
                Square square(5);
                square.setEdging(8);
                ASSERT_EQ(32, square.calcPerimeter()); 
        } 

        TEST(should be able to calculate the area after reset edging:square(5), square:setEdging(8),square.calArea())
        {
                Square square(5);
                square.setEdging(8);
                ASSERT_EQ(64, square.calcArea());     
        } 

	TEST(perimeter should be calculated to 20 for a Square:square(5))
	{
                Square square(5);
		ASSERT_EQ(20, square.calcPerimeter());
	}

	TEST(area should be calculated to 25 for a Square:square(5))
	{
                Square square(5);
		ASSERT_EQ(25, square.calcArea());
	}
};
